#coding:utf-8
'''
Created on 2015年4月20日

@author: leoZ
'''  
import cx_Oracle

class DBUtils(object):   
    def __init__(self):
        #后期修改为通过配置文件读取
        self.dataSource = "euler/euler@HTRHR2X"
        self.dbUtils = self
    def getConnection(self):
        #return cx_Oracle.Connection(self.dataSource)
        return cx_Oracle.connect('euler', 'euler', '10.1.9.29:1521/HTRHR2X') 